sysroot: Don't cache sepolicy
authorColin Walters <walters@verbum.org>
Tue, 28 Mar 2017 15:16:09 +0000 (11:16 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 28 Mar 2017 19:09:58 +0000 (19:09 +0000)
commit5333a429ce124854512d7c88ec05ae50d511bd2a
treedd2538097de4c0be9254ec8cf6415f0f9f8fef54
parent562cb55f511237d2c8e89f5bf1dfa4e68bff9a2d
sysroot: Don't cache sepolicy

In [this commit](https://github.com/ostreedev/ostree/commit/6ce80f9685e6273dbcb4731d6650a10976ea220a)
for some reason I added a `sepolicy` member to the sysroot.  I
have no idea why I did that, and it's conceptually wrong
since the policy is specific to a *deployment*.

This bit me when I was working on [a pull request](https://github.com/ostreedev/ostree/pull/763)
elsewhere, since at that point it was `NULL`.

We already pass around the sepolicy in the deployment code, so just stop caching
it.

Closes: #764
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c